import { http } from "@/utils/http";
import { baseUrlApi, filerEmptyVal } from "../utils";

/** 出库列表 */
export const getOutboundPage = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/stock/log/page"), {
    params: filerEmptyVal(params)
  });
};

/** 新增出库 */
export const outboundAdd = (data?: object) => {
  return http.request<any>("post", baseUrlApi("/stock/log/add"), { data });
};

/** 某仓库库存列表 */
export const getDeposiOutList = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/stock/log/depository/page"), {
    params: filerEmptyVal(params)
  });
};
